{template header}


{template sidebar}

<!-- artile begin -->
<div class="article">
{template title}



<!--{if  $type != stockTrans}-->

<!--{if  $a == 'index' || $a == 'search_stockMan'}-->
<form class="form-search" action="{$this->url($c, 'search_stockMan', $this->get())}">
    <table>
        <tr><td class="td1" width="20%">商品编号：</td>
            <td>

                <div class="input-append">
                    <input type="text" name="key" class="span2 search-query" value="{$a == 'search_Goods'? $res['key']  : '' }" placeholder=""请输入商品编号 />
                    <button type="button" class="btn search">搜索</button>
                </div>
            </td >
        </tr>
    </table>

</form>
<table cellpadding="1" cellspacing="1" width="100%" border="0">

    <tr>
        <th width="10%">商品编号</th>
        <th width="10%">颜色</th>
        <th width="10%">尺寸</th>
        <th width="10%">数量</th>
        <th width="20%">操作</th>
    </tr>

    <!--{if $result}-->
    <!--{loop $result $val}-->
    <tr>
        <td>{$val['goodsNo']}</td>
        <td>{$val['color']}</td>
        <td>{$val['size']}</td>
        <td>{$val['goodsNumber']}</td>
        <td class="operate">
            <a href="{$this->url($c,'edit',array('id'=>$val['id'],'inOutStockNo'=>$res['key']))}">编辑</a>
        </td>


    </tr>
    <!--{/loop}-->
    <!--{else}-->
    <tr>
        <td colspan="5">没有数据记录！</td>
    </tr>
    <!--{/if}-->



</table>
<!--{/if}-->

 <!--{if $a == 'edit' }-->
  <form method="post" action="{$this->url($c, 'saveStockInfo', array('id' => $result['id'],'type' => $type) )}">
        <table cellpadding="1" cellspacing="1" width="100%" border="0">
            <tr>
                <td class="td1">商品编号： </td>
                <td class="td2" colspan="4">
                    <input type="text" name="goodsNo" value="{$a == 'edit'? $result['goodsNo']  : '' }"    readonly=true " />
                </td>

            </tr>



            <tr>
                <td class="td1">数量：</td>
                <td class="td2" colspan="4">
                    <input type="text" name="goodsNumber" value="{$a == 'edit'  ?$result['goodsNumber']   : ''}"  />
                </td>
            </tr>


            <tr>
                <td class="td1">颜色：</td>

                <td class="td2" colspan="4">
                    <input type="text" name="color" value="{$a == 'edit'  ?$result['color']   : ''}" readonly=true/>

            </tr>
            <tr>
                <td class="td1">尺码：</td>

                <td class="td2" colspan="4">
                    <input type="text" name="size" value="{$a == 'edit'  ?$result['size']   : ''}" readonly=true />
                </td>
                <input type="hidden" name="inOutStockNo" value="{$result['inOutStockNo']}" />



            </tr>


            <tr>
                <td  colspan="2" class="td2">
                    <a title="保存" class="btn btn-success save" href="{$this->url($c)}">保 存</a>
                </td>
                <td colspan="2" class="td2">
                    <a title="重置" class="btn btn-success save" href="{$this->url($c)}">重 置</a>
                </td>
            </tr>
        </table>
    </form>
 <!--{/if}-->

 <!--{/if}-->


<!--{if  $type == stockTrans}-->
    页面正在建设中！！

<!--{/if}-->







</div>
<!-- artile end -->
{template footer}
